3.37 \(\int \frac{d+\frac{e}{x^2}}{c+\frac{a}{x^4}+\frac{b}{x^2}} \, dx\)

Optimal. Leaf size=208 \[ -\frac{\left (-\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} c^{3/2} \sqrt{b-\sqrt{b^2-4 a c}}}-\frac{\left (\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{2} c^{3/2} \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{d x}{c} \]

[Out]

(d*x)/c - ((b*d - c*e - (b^2*d - 2*a*c*d - b*c*e)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqr
t[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b - Sqrt[b^2
 - 4*a*c]]) - ((b*d - c*e + (b^2*d - 2*a*c*d - b*c*e)/Sqrt[b^2 - 4*a*c])*ArcTan[
(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b + Sqrt
[b^2 - 4*a*c]])

_______________________________________________________________________________________

Rubi [A]  time = 1.10437, antiderivative size = 208, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182 \[ -\frac{\left (-\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} c^{3/2} \sqrt{b-\sqrt{b^2-4 a c}}}-\frac{\left (\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{2} c^{3/2} \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{d x}{c} \]

Antiderivative was successfully verified.

[In]  Int[(d + e/x^2)/(c + a/x^4 + b/x^2),x]

[Out]

(d*x)/c - ((b*d - c*e - (b^2*d - 2*a*c*d - b*c*e)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqr
t[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b - Sqrt[b^2
 - 4*a*c]]) - ((b*d - c*e + (b^2*d - 2*a*c*d - b*c*e)/Sqrt[b^2 - 4*a*c])*ArcTan[
(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b + Sqrt
[b^2 - 4*a*c]])

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 76.2677, size = 214, normalized size = 1.03 \[ \frac{d x}{c} - \frac{\sqrt{2} \left (- 2 a c d + b \left (b d - c e\right ) + \sqrt{- 4 a c + b^{2}} \left (b d - c e\right )\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b + \sqrt{- 4 a c + b^{2}}}} \right )}}{2 c^{\frac{3}{2}} \sqrt{b + \sqrt{- 4 a c + b^{2}}} \sqrt{- 4 a c + b^{2}}} + \frac{\sqrt{2} \left (- 2 a c d + b \left (b d - c e\right ) - \sqrt{- 4 a c + b^{2}} \left (b d - c e\right )\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b - \sqrt{- 4 a c + b^{2}}}} \right )}}{2 c^{\frac{3}{2}} \sqrt{b - \sqrt{- 4 a c + b^{2}}} \sqrt{- 4 a c + b^{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((d+e/x**2)/(c+a/x**4+b/x**2),x)

[Out]

d*x/c - sqrt(2)*(-2*a*c*d + b*(b*d - c*e) + sqrt(-4*a*c + b**2)*(b*d - c*e))*ata
n(sqrt(2)*sqrt(c)*x/sqrt(b + sqrt(-4*a*c + b**2)))/(2*c**(3/2)*sqrt(b + sqrt(-4*
a*c + b**2))*sqrt(-4*a*c + b**2)) + sqrt(2)*(-2*a*c*d + b*(b*d - c*e) - sqrt(-4*
a*c + b**2)*(b*d - c*e))*atan(sqrt(2)*sqrt(c)*x/sqrt(b - sqrt(-4*a*c + b**2)))/(
2*c**(3/2)*sqrt(b - sqrt(-4*a*c + b**2))*sqrt(-4*a*c + b**2))

_______________________________________________________________________________________

Mathematica [A]  time = 0.324647, size = 251, normalized size = 1.21 \[ -\frac{\left (b d \sqrt{b^2-4 a c}-c e \sqrt{b^2-4 a c}+2 a c d+b^2 (-d)+b c e\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} c^{3/2} \sqrt{b^2-4 a c} \sqrt{b-\sqrt{b^2-4 a c}}}-\frac{\left (b d \sqrt{b^2-4 a c}-c e \sqrt{b^2-4 a c}-2 a c d+b^2 d-b c e\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{2} c^{3/2} \sqrt{b^2-4 a c} \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{d x}{c} \]

Antiderivative was successfully verified.

[In]  Integrate[(d + e/x^2)/(c + a/x^4 + b/x^2),x]

[Out]

(d*x)/c - ((-(b^2*d) + 2*a*c*d + b*Sqrt[b^2 - 4*a*c]*d + b*c*e - c*Sqrt[b^2 - 4*
a*c]*e)*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(3/2
)*Sqrt[b^2 - 4*a*c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) - ((b^2*d - 2*a*c*d + b*Sqrt[b^
2 - 4*a*c]*d - b*c*e - c*Sqrt[b^2 - 4*a*c]*e)*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b
+ Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b^2 - 4*a*c]*Sqrt[b + Sqrt[b^2 - 4*
a*c]])

_______________________________________________________________________________________

Maple [B]  time = 0.031, size = 560, normalized size = 2.7 \[ \text{result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((d+e/x^2)/(c+a/x^4+b/x^2),x)

[Out]

1/c*d*x-1/2/c*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b+(-
4*a*c+b^2)^(1/2))*c)^(1/2))*b*d+1/2*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arc
tan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*e+1/(-4*a*c+b^2)^(1/2)*2^(1/2)
/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^
(1/2))*a*d-1/2/c/(-4*a*c+b^2)^(1/2)*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arc
tan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*b^2*d+1/2/(-4*a*c+b^2)^(1/2)*2
^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2
))*c)^(1/2))*b*e+1/2/c*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^(
1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*b*d-1/2*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))
*c)^(1/2)*arctanh(c*x*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*e+1/(-4*a*c+b^2
)^(1/2)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/((-b+(-4*a
*c+b^2)^(1/2))*c)^(1/2))*a*d-1/2/c/(-4*a*c+b^2)^(1/2)*2^(1/2)/((-b+(-4*a*c+b^2)^
(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*b^2*d+1/2
/(-4*a*c+b^2)^(1/2)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2
)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*b*e

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \frac{d x}{c} + \frac{-\int \frac{{\left (b d - c e\right )} x^{2} + a d}{c x^{4} + b x^{2} + a}\,{d x}}{c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((d + e/x^2)/(c + b/x^2 + a/x^4),x, algorithm="maxima")

[Out]

d*x/c + integrate(-((b*d - c*e)*x^2 + a*d)/(c*x^4 + b*x^2 + a), x)/c

_______________________________________________________________________________________

Fricas [A]  time = 0.332601, size = 3429, normalized size = 16.49 \[ \text{result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((d + e/x^2)/(c + b/x^2 + a/x^4),x, algorithm="fricas")

[Out]

1/2*(sqrt(1/2)*c*sqrt(-(b*c^2*e^2 + (b^3 - 3*a*b*c)*d^2 - 2*(b^2*c - 2*a*c^2)*d*
e + (b^2*c^3 - 4*a*c^4)*sqrt(-(4*b*c^3*d*e^3 - c^4*e^4 - (b^4 - 2*a*b^2*c + a^2*
c^2)*d^4 + 4*(b^3*c - a*b*c^2)*d^3*e - 2*(3*b^2*c^2 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^2*e
^2)/(b^2*c^6 - 4*a*c^7)))*sqrt(-(b*c^2*e^2 + (b^3 - 3*a*b*c)*d^2 - 2*(b^2*c - 2*
a*c^2)*d*e - (b^2*c^3 - 4*a*c^4)*sqrt(-(4*b*c^3*d*e^3 - c^4*e^4 - (b^4 - 2*a*b^2
*c + a^2*c^2)*d^4 + 4*(b^3*c - a*b*c^2)*d^3*e - 2*(3*b^2*c^2 - a*c^3)*d^2*e^2)/(
b^2*c^6 - 4*a*c^7)))/(b^2*c^3 - 4*a*c^4))) + 2*d*x)/c

_______________________________________________________________________________________

Sympy [A]  time = 34.7032, size = 428, normalized size = 2.06 \[ \operatorname{RootSum}{\left (t^{4} \left (256 a^{2} c^{5} - 128 a b^{2} c^{4} + 16 b^{4} c^{3}\right ) + t^{2} \left (48 a^{2} b c^{2} d^{2} - 64 a^{2} c^{3} d e - 28 a b^{3} c d^{2} + 48 a b^{2} c^{2} d e - 16 a b c^{3} e^{2} + 4 b^{5} d^{2} - 8 b^{4} c d e + 4 b^{3} c^{2} e^{2}\right ) + a^{3} d^{4} - 2 a^{2} b d^{3} e + 2 a^{2} c d^{2} e^{2} + a b^{2} d^{2} e^{2} - 2 a b c d e^{3} + a c^{2} e^{4}, \left ( t \mapsto t \log{\left (x + \frac{32 t^{3} a b c^{4} d - 64 t^{3} a c^{5} e - 8 t^{3} b^{3} c^{3} d + 16 t^{3} b^{2} c^{4} e - 4 t a^{2} c^{2} d^{3} + 8 t a b^{2} c d^{3} - 18 t a b c^{2} d^{2} e + 12 t a c^{3} d e^{2} - 2 t b^{4} d^{3} + 6 t b^{3} c d^{2} e - 6 t b^{2} c^{2} d e^{2} + 2 t b c^{3} e^{3}}{a^{2} c d^{4} - a b^{2} d^{4} + a b c d^{3} e + b^{3} d^{3} e - 3 b^{2} c d^{2} e^{2} + 3 b c^{2} d e^{3} - c^{3} e^{4}} \right )} \right )\right )} + \frac{d x}{c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((d+e/x**2)/(c+a/x**4+b/x**2),x)

[Out]

RootSum(_t**4*(256*a**2*c**5 - 128*a*b**2*c**4 + 16*b**4*c**3) + _t**2*(48*a**2*
b*c**2*d**2 - 64*a**2*c**3*d*e - 28*a*b**3*c*d**2 + 48*a*b**2*c**2*d*e - 16*a*b*
c**3*e**2 + 4*b**5*d**2 - 8*b**4*c*d*e + 4*b**3*c**2*e**2) + a**3*d**4 - 2*a**2*
b*d**3*e + 2*a**2*c*d**2*e**2 + a*b**2*d**2*e**2 - 2*a*b*c*d*e**3 + a*c**2*e**4,
 Lambda(_t, _t*log(x + (32*_t**3*a*b*c**4*d - 64*_t**3*a*c**5*e - 8*_t**3*b**3*c
**3*d + 16*_t**3*b**2*c**4*e - 4*_t*a**2*c**2*d**3 + 8*_t*a*b**2*c*d**3 - 18*_t*
a*b*c**2*d**2*e + 12*_t*a*c**3*d*e**2 - 2*_t*b**4*d**3 + 6*_t*b**3*c*d**2*e - 6*
_t*b**2*c**2*d*e**2 + 2*_t*b*c**3*e**3)/(a**2*c*d**4 - a*b**2*d**4 + a*b*c*d**3*
e + b**3*d**3*e - 3*b**2*c*d**2*e**2 + 3*b*c**2*d*e**3 - c**3*e**4)))) + d*x/c

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 1.28784, size = 1, normalized size = 0. \[ \mathit{Done} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((d + e/x^2)/(c + b/x^2 + a/x^4),x, algorithm="giac")

[Out]

Done